'use strict'
const Router = require('koa-router')
// const listen1Api = require('./listen1-api');
const listen1Api = require('../music-api')
const router = new Router({ prefix: '/api' })

router.get('/single', async (ctx) => {
  // const data = await listen1Api.getPlaylist()
  const search = await listen1Api.search({ keyword: '晴天' })
  ctx.body = { search }
})

module.exports = router
